package de.baumann.browser.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import de.baumann.browser.R;
import de.baumann.browser.api.net.vo.InviteInfo;

/**
 * @author:
 * @date:2019/1/4 16:51
 * @discription: 邀请排名 适配器
 */
public class InviteRankingAdapter extends BaseQuickAdapter<InviteInfo.ListEntity, BaseViewHolder> {

    public InviteRankingAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, InviteInfo.ListEntity item) {
        helper.setText(R.id.tvRanking,item.getPhone());
        helper.setText(R.id.tvInviteContribute,item.getContribute());
        helper.setText(R.id.tvInviteCount,item.getInvite());
    }
}
